<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

              <title><?php echo $groupinfo['name']; ?>|话题详情页|<?php echo webconfig('WEB_SITE_TITLE'); ?> - Powered by EasySNS!</title>
  
  
  <meta name="keywords" content="<?php echo webconfig('WEB_SITE_KEYWORD'); ?>">
  <meta name="description" content="<?php echo webconfig('WEB_SITE_DESCRIPTION'); ?>">
      
<link rel="shortcut icon" href="__PUBLIC__/images/favicon.ico">
  <link rel="stylesheet" type="text/css" href="__CSS__/iconfont.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
 
  <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/jianyue.css" />


    

		<script type="text/javascript" src="__PUBLIC__/js/jquery-1.9.1.min.js"></script>

			<script type="text/javascript" src="__PUBLIC__/js/compatibility.js"></script>
		<!--[if lt IE 9]>
		<script type="text/javascript" src="__PUBLIC__/js/html5shiv.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/respond.min.js"></script>
		<![endif]-->
</head>
<body>

<script type="text/javascript">
var G_POST_HASH="<?php echo session_id(); ?>";
	var G_BASE_URL = "<?php echo webconfig('web_url'); ?>";
	var G_USER_ID = "<?php echo $nowuid; ?>";
	var G_USER_NAME = "<?php echo $userinfo['nickname']; ?>";
	</script>
<div class="aw-top-menu-wrap">

    <div class="container">
        <!-- logo -->
        <div class="aw-logo hidden-xs">
            <a href="<?php echo es_url('Index/index'); ?>" id="logo">
                <img src="__PUBLIC_IMG__/logoblack.png"/>
            </a>
        </div>
        <!-- end logo -->
        <!-- 搜索框 -->
        <div class="aw-search-box ">
            <form class="navbar-search" action="<?php echo es_url('search/index'); ?>" id="global_search_form" method="post">
                <input class="form-control search-query" type="text" placeholder="搜索问题、话题或人" autocomplete="off" name="q"
                       id="aw-search-query">
                <span title="搜索" id="global_search_btns" onclick="$('#global_search_form').submit();"><i
                        class="iconfont icon-chazhao"></i></span>
                <div class="aw-dropdown">
                    <div class="mod-body">
                        <p class="title">输入关键字进行搜索</p>
                        <ul class="aw-dropdown-list hide"></ul>
                        <p class="search"><span>搜索:</span><a onclick="$('#global_search_form').submit();"></a></p>
                    </div>

                </div>
            </form>
            <a href="javascript:search(0);" class="search-close">关闭</a>
        </div>
        <script type="text/javascript">
            function search(s) {

                if (s == 1) {
                    var height = $('.aw-top-nav').height() - 16;

                    $('#xiaosou').fadeOut();

                    $('.headnav').find('.hidden-xs').hide();

                    $('.aw-search-box').show().animate({top: height}, 300);
                } else {
                    $('#xiaosou').fadeIn();
                    $('.headnav').find('.hidden-xs').show();
                    $('.aw-search-box').stop().fadeOut();
                }
            }
        </script>
        <!-- end 搜索框 -->
        <!-- 导航 -->
        <div class="aw-top-nav navbar">
            <div class="navbar-header">
                <button class="navbar-toggle pull-left">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <nav role="navigation" class="collapse navbar-collapse bs-navbar-collapse">
                <ul class="nav navbar-nav">

                    <?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <?php if($vo['pid'] == '1'): ?>
                    <li>
                        <a href="<?php echo getnavlink($vo['link'],$vo['sid']); ?>" target="<?php echo $vo['target']; ?>" title="<?php echo $vo['alias']; ?>" <?php if(true == getnavactive(getnavlink($vo['link'],$vo['sid']))): ?>class="active" <?php endif; ?>><i
                            class="iconfont icon-<?php echo $vo['icon']; ?>"></i> <?php echo $vo['name']; ?></a>
                    </li>
                    <?php endif; ?>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                    <?php if(session('member_info')): ?>
                    <li>
                        <a href="<?php echo es_url('user/mess'); ?>" class=""><i class="iconfont icon-remind1"></i> 通知</a>
                        <?php if($messcount > 0): ?>
                        <span class="badge badge-important" id="notifications_unread"><?php echo $messcount; ?></span>
                        <?php endif; ?>
                        <div class="aw-dropdown pull-right hidden-xs">
                            <div class="mod-body">
                                <ul id="header_notification_list">

                                    <?php if($messlist): ?>

                                    <?php if(is_array($messlist)): $i = 0; $__LIST__ = $messlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                    <li>
                                        <h3 class="title">
                                            <i class="iconfont icon-remind"></i> <?php echo $vo['messname']; ?>&nbsp;&nbsp;<span
                                                class="time"><?php echo friendlyDate($vo['update_time']); ?></span>


                                        </h3>

                                        <p class="msg-body"><?php echo $vo['content']; ?>
                                        </p>

                                    </li>

                                    <?php endforeach; endif; else: echo "" ;endif; ?>


                                    <?php else: ?>

                                    <p class="aw-padding10" align="center">没有未读通知</p>
                                    <?php endif; ?>


                                </ul>
                            </div>
                            <div class="mod-footer">
                                <a href="<?php echo es_url('user/mess'); ?>">查看全部</a>
                            </div>
                        </div>
                    </li>
                    <?php endif; ?>


                </ul>
            </nav>
        </div>
        <!-- end 导航 -->
        <!-- 用户栏 -->

        <?php if(session('member_info')): ?>
        <div class="aw-user-nav">

            <a href="javascript:;" class="aw-user-nav-dropdown">
                <img alt="<?php echo $userinfo['nickname']; ?>" src="<?php echo getheadurl($userinfo['userhead']); ?>">

            </a>
            <div class="aw-dropdown dropdown-list pull-right">
                <ul class="aw-dropdown-list">
                    <?php if($userinfo['is_inside'] == 1): ?>
                    <li class=""><a href="<?php echo webconfig('web_url'); ?>admin.php" target="_blank"> 管理后台</a></li>
                    <?php endif; ?>
                    <li class=""><a href="<?php echo es_url('user/home',array('id'=>$userinfo['id'])); ?>"><i
                            class="iconfont icon-fenlei"></i> 主页</a></li>
                    <li class=""><a href="<?php echo es_url('user/mess'); ?>"><i class="iconfont icon-remind"></i> 消息</a></li>
                    <li class=""><a href="<?php echo es_url('user/mytopic'); ?>"><i class="iconfont icon-pinglun"></i> 我的帖子</a></li>

                    <li><a href="<?php echo es_url('user/index'); ?>"><i class="iconfont icon-shezhi"></i> 设置</a></li>
                    <li><a href="javascript:;" data-url="<?php echo es_url('user/logout'); ?>" class="logoutajax" target="_blank"><i
                            class="iconfont icon-close"></i> 退出</a></li>
                </ul>
            </div>

        </div>
        <div class="aw-publish-btn">
            <a id="header_publish" href="<?php echo es_url('topic/topicadd'); ?>" class="btn-primary">
                <i class="iconfont icon-fabu2"></i>发布</a>

        </div>
        <?php else: ?>
        <div class="aw-user-nav">

            <a class="btn-primary btnst " href="<?php echo es_url('user/login'); ?>">登录</a>
            <span class="or">or</span>
            <a class="register btn-success btnst" href="<?php echo es_url('user/register'); ?>">注册</a>
            <!-- end 登陆&注册栏 -->
        </div>


        <?php endif; ?>


    </div>
    <div class="headnav" id="fudao" style="">
        <div class="container">

            <ul class="">

                <?php if(is_array($topiccatelist)): $i = 0;$__LIST__ = is_array($topiccatelist) ? array_slice($topiccatelist,0,10, true) : $topiccatelist->slice(0,10, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <li class="xs <?php if($cateinfo['id'] == $vo['id']): ?>active<?php endif; ?>">
                <a href="<?php echo es_url('topic/cindex',array('id'=>$vo['id'])); ?>"><?php echo $vo['name']; ?></a>
                </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
                <li class="pull-right" id="xiaosou"><a href="javascript:search(1);" class="search"><i
                        class="icon icon-search"></i>&nbsp;搜索</a></li>


            </ul>
        </div>
    </div>

</div>

  
<div class="aw-container-wrap">


	<div class="container">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="col-sm-12 col-md-9 aw-main-content">
					<div class="aw-mod aw-topic-detail-title">
						<div class="mod-body">
						
							<img src="<?php echo get_groupavatar($groupinfo['cover_id']); ?>" alt="<?php echo $groupinfo['name']; ?>" style="width:50px;height:50px;">
						
		
							<div class="pull-left ">
							<h2><?php echo $groupinfo['name']; ?>   	<div class="pull-right es-margin-l-10"><?php if($groupinfo['hassc'] == 1): ?>
								<a href="javascript:;" onclick="AWS.User.follow($(this), 'huati', <?php echo $groupinfo['id']; ?>);" class="follow btn btn-sm btn-success pull-left active"><span>取消关注</span> <em>|</em> <b><?php echo $groupinfo['focuscount']; ?></b></a>
		<?php else: ?>
									<a href="javascript:;" onclick="AWS.User.follow($(this), 'huati', <?php echo $groupinfo['id']; ?>);" class="follow btn btn-sm btn-success pull-left "><span>关注</span> <em>|</em> <b><?php echo $groupinfo['focuscount']; ?></b></a>
	
		<?php endif; ?></div></h2>
							
												<div class="media-metas clearfix ">

      
        <span class=""><?php echo $groupinfo['topiccount']; ?>个帖子</span>
        <span class="fsn es-margin-l-10">创建时间：<?php echo friendlyDate($groupinfo['create_time']); ?></span>

      </div>
							</div>
							
						<?php if(session('member_info')): ?>	
							<div class="aw-topic-operate text-color-999">
							
									<a class="btn btn-normal btn-success" href="<?php echo es_url('Topic/topicadd',array('name'=>$groupinfo['name'])); ?>"><i class="iconfont icon-fabu2"></i> 发帖</a>
															                          
							</div>
														
	<?php endif; ?>
						</div>
																				      
					</div>

					<div class="aw-mod aw-topic-list-mod">
						<div class="mod-head">
							<div class="tabbable">
								<!-- tab 切换 -->
								<ul class="nav nav-tabs aw-nav-tabs hidden-xs">
									
									<li <?php if($order == 1): ?>class="active"<?php endif; ?>><a href="<?php echo es_url('Topic/index',array('order'=>1,'paixu'=>$paixu,'name'=>$groupinfo['name'])); ?>" >全部内容</a></li>
							
																		<li <?php if($order == 2): ?>class="active"<?php endif; ?>><a href="<?php echo es_url('Topic/index',array('order'=>2,'paixu'=>$paixu,'name'=>$groupinfo['name'])); ?>" >推荐</a></li>
																		<?php if(session('member_info')): ?>	
																		<li <?php if($order == 3): ?>class="active"<?php endif; ?>><a href="<?php echo es_url('Topic/index',array('order'=>3,'paixu'=>$paixu,'name'=>$groupinfo['name'])); ?>" id="i_favorite"  >我的收藏</a></li>
									                                    <?php endif; ?>
								
								<div class="paixu pull-right">
								<span><a href="<?php echo es_url('Topic/index',array('order'=>$order,'paixu'=>1,'name'=>$groupinfo['name'])); ?>" <?php if($paixu == 1): ?>class="active"<?php endif; ?>>按回帖时间</a></span>
								<span class="fly-mid">|</span>
								<span><a href="<?php echo es_url('Topic/index',array('order'=>$order,'paixu'=>2,'name'=>$groupinfo['name'])); ?>" <?php if($paixu == 2): ?>class="active"<?php endif; ?>>按发表时间</a></span>
								</div>
								</ul>
								
								
								<!-- end tab 切换 -->
							</div>
						</div>

						<div class="mod-body">
							<!-- tab 切换内容 -->
							<div class="tab-content">
								<div class="tab-pane active" id="all">
									<!-- 推荐问题 -->
									<!-- end 推荐问题 -->
									<div class="aw-mod">
										<div class="mod-body">
											<div class="aw-common-list" id="c_all_list">
													<ul class="fly-list">          
        <?php if(is_array($topiclist)): $i = 0; $__LIST__ = $topiclist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

   <li>
   <a class="fly-avatar " data-id="<?php echo $vo['uid']; ?>"  href="<?php echo es_url('user/home',array('id'=>$vo['uid'])); ?>" rel="nofollow">
	<img src="<?php echo getheadurl($vo['userhead']); ?>" alt="<?php echo $vo['nickname']; ?>">
	
        <?php if($vo['rzstatus']): ?>
	<i class="iconfont <?php echo $vo['rzicon']; ?>"></i>
	<?php endif; ?>
            </a>
            
          
            <h2>
             
              <a class="listlink" href="<?php echo es_url('Topic/gview',array('id'=>$vo['id'])); ?>"><?php echo $vo['title']; ?></a>
            </h2>

            <div class="fly-list-info">
          
              
              
             <span class="text-color-999"><?php if($vo['tid'] > 0): ?><a class="aw-question-tags" href="<?php echo es_url('topic/cindex',array('id'=>$vo['tid'])); ?>"><?php echo get_topiccatename($vo['tid']); ?></a>  • <?php endif; ?><a href="<?php echo es_url('user/home',array('id'=>$vo['replyuid'])); ?>" class="aw-user-name" data-id="<?php echo $vo['replyuid']; ?>"><?php echo $vo['replyuser']; ?></a> <?php echo $vo['actionname']; ?>  • <?php echo $vo['focuscount']; ?> 人关注  • <?php echo $vo['reply']; ?> 个回复 • <?php echo $vo['view']; ?> 次浏览 • 	<?php echo $vo['praise']; ?>次点赞	  			</span>
 
          
              <span class="fly-list-nums es-font12 hidden-xs"> 
           
               <?php echo $vo['replytime']; ?>
              </span>
            </div>
            <div class="fly-list-badge">
   <?php if($vo['settop'] == 1): ?><span class="layui-badge layui-bg-red ">置顶</span><?php endif; ?>
		<?php if($vo['choice'] == 1): ?><span class="layui-badge layui-bg-green">推荐</span><?php endif; ?>		
            </div>
          </li>


<?php endforeach; endif; else: echo "" ;endif; ?>
       
         
        </ul>


											</div>
										</div>
										<div class="mod-footer">
												<div class="page-control">
							<?php echo $page; ?>
							</div>
										</div>
									</div>
								</div>

					
						
							</div>
							<!-- end tab 切换内容 -->
						</div>
					</div>
				</div>

				<!-- 侧边栏 -->
				<div class="col-sm-12 col-md-3 aw-side-bar hidden-xs">
					<!-- 话题描述 -->
					<div class="aw-mod aw-text-align-justify">

						<div class="mod-head">
							<h3>话题描述</h3>
						</div>
						<div class="mod-body">
														<p><?php echo html_entity_decode($groupinfo['describe']); ?></p>
													</div>
					</div>
					<!-- end 话题描述 -->

					<div class="aw-mod topic-about">
	<div class="mod-head">
		<h3>相关话题</h3>
	</div>
	<div class="mod-body" data-type="topic">
		<div class="aw-topic-bar" data-type="topic" data-id="79">
			<div class="tag-bar clearfix">
			<?php if(is_array($grouplist)): $i = 0; $__LIST__ = $grouplist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>		
					<span class="topic-tag" >
						<a class="text" href="<?php echo es_url('Topic/index',array('name'=>$vo['name'])); ?>"><?php echo $vo['name']; ?></a>
					</span>	
				<?php endforeach; endif; else: echo "" ;endif; ?>	
					
					
																</div>
		</div>
	</div>
</div>
					
					

					<!-- xx人关注该话题 -->
					<div class="aw-mod topic-status">
						<div class="mod-head">
							<h3><?php echo $focuscount; ?> 人关注该话题</h3>
						</div>
						<div class="mod-body">
							<div id="focus_users" class="aw-border-radius-5">
							<?php if(is_array($memberlist)): $i = 0; $__LIST__ = $memberlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>		
	                             <a href="<?php echo es_url('user/home',array('id'=>$vo['id'])); ?>"><img src="<?php echo getheadurl($vo['userhead']); ?>" alt="<?php echo $vo['nickname']; ?>"></a>
							<?php endforeach; endif; else: echo "" ;endif; ?>
							
					 </div>
						</div>
					</div>
					<!-- end xx人关注该话题 -->

					<!-- 话题修改记录 -->
										<!-- end 话题修改记录 -->

									</div>
				<!-- end 侧边栏 -->
			</div>
		</div>
	</div>
</div>

<div class="aw-footer-wrap">
	<div class="aw-footer">
		<div class="container">
			<div class="row">
				<div class="col-sm-2">
					<h4>站内导航</h4>
					<ul class="list-unstyled">
						   <?php if(is_array($footnav)): $i = 0; $__LIST__ = $footnav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

    
<li><a href="<?php echo getnavlink($vo['link'],$vo['sid']); ?>" title="<?php echo $vo['alias']; ?>" target="<?php echo $vo['target']; ?>"><i class="iconfont icon-<?php echo $vo['icon']; ?>" ></i> <?php echo $vo['name']; ?></a></li>

    <?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
				<div class="col-sm-2">
					<h4>联系合作</h4>
					<ul class="list-unstyled">
					
					</ul>
				</div>
				<div class="col-sm-2">
					<h4>关注我们</h4>
					<ul class="list-unstyled">
					
					</ul>
				</div>
				<div class="col-sm-2">
					<h4>友情链接</h4>
					<ul class="list-unstyled">
						
						<?php echo hook('friendLink'); ?> 
					</ul>
				</div>
	 			<div class="col-sm-4">
					<h4>内容许可</h4>
					
				</div>
			</div>
		</div>
		
		<p class="es-margin-t-20">Copyright © 2017 <a href="http://es.imzaker.com">EasySNS内容建站系统</a> 版权所有 <?php echo webconfig('WEB_SITE_TITLE'); ?> <?php echo webconfig('WEB_SITE_ICP'); ?></p>
<p><?php echo html_entity_decode(webconfig('WEB_SITE_FOOTER')); ?></p>
		
	</div>
</div>



<div id="aw-ajax-box" class="aw-ajax-box hidden-xs">
</div>
<a href="javascript:;" id="gotoTop" class="show hidden-xs" style="right: 71.5px;"><i></i></a>







<!--页面JS脚本-->


			<script type="text/javascript" src="__JS__/aws.js"></script>
			<script type="text/javascript" src="__JS__/aw_template.js"></script>
				<script type="text/javascript" src="__JS__/app.js"></script>
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
<script type="text/javascript" src="__JS__/jquery.easing.min.js"></script>

<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>


<script type="text/javascript">

	var CONTENTS_TOPIC_ID ="<?php echo $groupinfo['id']; ?>";

	var CONTENTS_TOPIC_TITLE = "<?php echo $groupinfo['name']; ?>";
</script>


</body>
</html>